<?php

namespace app\nideshop\controller;

use think\Db;

/**
 * 专题
 */
class Region extends Base
{
    protected $datas;

    public function listAction()
    {
        $this->datas = $this->params;
        $parentId = (int) $this->datas['parentId'];
        $data = Db::name('region')
            ->where('parent_id', $parentId)
            ->select();
            
        return json([
            'errno' => 0,
            'errmsg' => '成功',
            'data' => $data
        ]);
    }
}
